<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo site_url('static/style/css/style.css');?>" />
<title>无标题文档</title>
</head>

<body>
<form name="adduser" method="post" action="<?php echo site_url('adminroot/users/edit_user');?>">
 <?php echo validation_errors(); ?>
<table width="100%" border="0">
  <tr>
    <td>
    <h3>编辑用户</h3>
    </td>
  </tr>
  <tr>
    <td width="7%" height="31">姓名：</td>
    <td width="93%"><label>
      <input type="text" name="txusername" value="<?=$user['txusername']?>"/>
    </label></td>
  </tr>
  <tr>
    <td height="36">EMail：</td>
    <td><input type="text" name="txemail" value="<?=$user['txemail']?>"/></td>
  </tr>
  <tr>
    <td height="38">头像：</td>
    <td><input type="file" name="headerpic" id="fileField" /></td>
  </tr>
  <tr>
    <td height="39">级别：</td>
    <td>
     <select name="txgrade">
      <?php foreach($grade as $gv){?>
      	<option value="<?=$gv->id?>" <?php if($user['txgrade'] == $gv->id){?> selected<?php } ?>><?=$gv->gradename?></option>
      	<?php } ?>
      </select>
    </td>
  </tr>
  <tr>
    <td height="37">金币数量：</td>
    <td><input type="text" name="txgoldnum" value="<?=$user['txgoldnum']?>"/></td>
  </tr>
  <tr>
    <td height="35">国家：</td>
    <td><label>
      
    <select name="txcountry">
      <?php foreach($country as $cv){?>
      	<option value="<?=$cv->id?>" <?php if($user['txcountry'] == $cv->id){?> selected<?php } ?>><?=$cv->name?></option>
      	<?php } ?>
      </select>
    </label></td>
  </tr>
  <tr>
    <td height="37">收货地址：</td>
    <td><label>
      <input type="text" name="txaddress" value="<?=$user['txaddress']?>" size="120"/>
    </label></td>
  </tr>
  <tr>
    <td height="44">收款账号：</td>
    <td><label>
      <input type="text" name="txaccount" value="<?=$user['txaccount']?>" size="50"/>
    </label></td>
  </tr>
      <tr>
    <td height="44">状态：</td>
    <td>
           <select name="enabled">
      
      	<option value="1" <?php if($user['enabled'] == 1){?> selected<?php } ?>>启用</option>
      <option value="0" <?php if($user['enabled'] == 0){?> selected<?php } ?>>停用</option>
      </select>
    </td>
  </tr>
  <tr>
    <td height="44">&nbsp;</td>
    <td><label>
    <input  type="hidden" name="id" value="<?=$user['uid']?>"/>
      <input type="submit" name="Submit" value="提交" />
    </label></td>
  </tr>
</table>
</form>
</body>
</html>

